package org.vincen.helloworld.pinyin4j;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class TestCase {

	public static void main(String[] args) {
		File file = new File("D:/name.txt");
		String s = "";
		try {
			BufferedReader reader = new BufferedReader(new FileReader(file));
			while ((s = reader.readLine()) != null) {
				String py1 = PhoneticConversion.getPingYin(s);
				String py2 = PhoneticConversion.getFirstSpell(s);
				System.out.println(s + " : " + py1 + " : " + py2);
			}
			reader.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}

}
